#include<stdio.h>
#include<string.h>
#include<io.h>
void main() {
    FILE *f=fopen("443.txt","w");
    int i;
    int a;
    for(i=-100; i<100; i++) {
        //a=rand();
        putw(i,f);
    }
    fclose(f);
    FILE *k=fopen("443.txt","r");
    int x;
    while(!feof(k)){
    	x=getw(k);
    	printf("%d ",x);
	}
//     for(i=-100; i<100; i++) {
//        x=getw(k);
////        if(x==EOF)
////        	break;
////        if(feof(k)){
////            break;
////        }
//        printf("%d ",x);
//    }
    fclose(k);
}
